package com.lyl.goods.service;

import com.lyl.goods.pojo.ShoppingCart;

import java.util.List;
import java.util.Map;

/**
 * @Author: Liyunlong
 * @Date: 2024/03/01/19:10
 * @Description:
 */
public interface CartService {

    void add(Long productId);

    void delete(Long cartId);

    ShoppingCart selectByProductId(Long productId);


    void update(Long productId, ShoppingCart shoppingCart);

    ShoppingCart getByCartId(Long cartId);

    void addQuantity(Long cartId, int quantity);

    void JianQuantity(Long cartId, int quantity);

    List<ShoppingCart> cartList(Integer userId);

    List<Map<String, Object>> getCartItems(Integer userId);
}
